{% load mptt_tags %}
{% load shop_tags %}

{% block content %}
{% shop_category_tree_for_node current_category as category_tree %}
{% for category,tree in category_tree %}
{% if tree.new_level %}<ul><li>{% else %}</li><li>{% endif %}
<a href="{% url shop.views.browse category=category.id %}">{{ category.name }}</a> ({{ category.product_count }})
{% for level in tree.closed_levels %}</li></ul>{% endfor %}
{% endfor %}
{% endblock content %}